package com.ruoyi.hospital.domain.shop;

import com.ruoyi.common.core.domain.NewTreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商品属性对象 shop_product_attributes
 * 
 * @author ruoyi
 * @date 2024-08-17
 */
public class ShopProductAttributes extends NewTreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 名称 */
    @Excel(name = "名称")
    private String attrName;

    /** 分类 */
    @Excel(name = "分类")
    private Integer categoryId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer attrSort;

    /** 是否可输入 */
    @Excel(name = "是否可输入")
    private Integer isInputable;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer isEnabled;

    /** 药品类型 */
    @Excel(name = "药品类型")
    private Integer drugDicType;

    /** 删除时间 */
    private Integer deleteTime;

    //衍生字段
    private  String categoriesName; //商品分类名称

    public String getCategoriesName() {
        return categoriesName;
    }

    public void setCategoriesName(String categoriesName) {
        this.categoriesName = categoriesName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setAttrName(String attrName) 
    {
        this.attrName = attrName;
    }

    public String getAttrName() 
    {
        return attrName;
    }
    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }
    public void setAttrSort(Integer attrSort) 
    {
        this.attrSort = attrSort;
    }

    public Integer getAttrSort() 
    {
        return attrSort;
    }
    public void setIsInputable(Integer isInputable) 
    {
        this.isInputable = isInputable;
    }

    public Integer getIsInputable() 
    {
        return isInputable;
    }
    public void setIsEnabled(Integer isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Integer getIsEnabled() 
    {
        return isEnabled;
    }
    public void setDrugDicType(Integer drugDicType) 
    {
        this.drugDicType = drugDicType;
    }

    public Integer getDrugDicType() 
    {
        return drugDicType;
    }
    public void setDeleteTime(Integer deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Integer getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("attrName", getAttrName())
            .append("categoryId", getCategoryId())
            .append("parentId", getParentId())
            .append("attrSort", getAttrSort())
            .append("isInputable", getIsInputable())
            .append("isEnabled", getIsEnabled())
            .append("drugDicType", getDrugDicType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
